package com.yoso.shop.infrastructure.dao.stock;

import com.yoso.base.infrastructure.dao.BaseMapper;
import com.yoso.shop.domain.stock.StockEntity;
import com.yoso.shop.domain.stock.StockEntityExample;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface StockEntityMapper extends BaseMapper<StockEntity, StockEntityExample> {
    @Override
    long countByExample(StockEntityExample example);

    @Override
    int deleteByExample(StockEntityExample example);

    @Override
    int deleteByPrimaryKey(String id);

    @Override
    int insert(StockEntity record);

    @Override
    int insertSelective(StockEntity record);

    @Override
    List<StockEntity> selectByExample(StockEntityExample example);

    @Override
    StockEntity selectByPrimaryKey(String id);

    @Override
    int updateByExampleSelective(@Param("record") StockEntity record, @Param("example") StockEntityExample example);

    @Override
    int updateByExample(@Param("record") StockEntity record, @Param("example") StockEntityExample example);

    @Override
    int updateByPrimaryKeySelective(StockEntity record);

    @Override
    int updateByPrimaryKey(StockEntity record);
}